package com.lu.manage.modular.system.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @program LuBoot
 * @description: 菜单表
 * @author: showlu
 * @create: 2019-10-17 09:11:00
 */
@Data
@TableName("sys_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId(value = "menu_id", type = IdType.ID_WORKER_STR)
    private String menuId;
    //菜单编号
    @TableField("code")
    private String code;
    //菜单父编号
    @TableField("pcode")
    private String pcode;
    //当前菜单的所有父菜单编号
    @TableField("pcodes")
    private String pcodes;
    //菜单名称
    @TableField("name")
    private String name;
    //菜单图标
    @TableField("icon")
    private String icon;
    //url地址
    @TableField("url")
    private String url;
    //菜单排序号
    @TableField("sort")
    private Integer sort;
    //菜单层级
    @TableField("levels")
    private Integer levels;
    //是否是菜单(字典)
    @TableField("menu_flag")
    private String menuFlag;
    //备注
    @TableField("description")
    private String description;
    //菜单状态(字典)
    @TableField("status")
    private Integer status;
    //是否打开新页面的标识(字典)
    @TableField("new_page_flag")
    private Integer newPageFlag;
    //是否打开(字典)
    @TableField("open_flag")
    private Integer openFlag;
    //修改时间
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //修改人
    @TableField(value = "update_user", fill = FieldFill.INSERT_UPDATE)
    private String updateUser;

}
